package org.jeecg.modules.dxpz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.dxpz.entity.CsPtDxpz;
import org.jeecg.modules.dxpz.mapper.CsPtDxpzMapper;
import org.jeecg.modules.dxpz.service.ICsPtDxpzService;
import org.springframework.stereotype.Service;

/**
 * @Description: 短信配置表
 * @Author: jeecg-boot
 * @Date:   2023-11-08
 * @Version: V1.0
 */
@Service
public class CsPtDxpzServiceImpl extends ServiceImpl<CsPtDxpzMapper, CsPtDxpz> implements ICsPtDxpzService {

    @Override
    public CsPtDxpz getCurDxpz(String tenantId,String dxlx) {
        CsPtDxpz csPtDxpz = this.lambdaQuery().eq(CsPtDxpz::getTenantId, tenantId)
                .eq(CsPtDxpz::getDxlx, dxlx)
                .eq(CsPtDxpz::getYxbz,"1").last("limit 1").one();
        return csPtDxpz;
    }
}
